package study.java.jdk.jdk8._1_stream.terminal;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Slf4j
public class collect_Test {

    /**
     * @param collector Collector
     */
    @Test
    public void test() {
        List<String> src = Arrays.asList("abc", "123");
        Long count = src.stream()
                .collect(Collectors.counting());
        log.info("{}", count);
    }
}
